<div class="scrollbox">
  <table>
    <thead>
      <tr>
        <th class="inten-name">姓名</th>
        <th class="inten-sex">性别</th>
        <th class="inten-tel">电话</th>
        <th class="inten-g">分组</th>
        <th class="inten-age">年龄阶段</th>
        <th class="inten-s">状态</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @potential_students.each do |potential_student| %>
        <tr>
          <td><%= potential_student.name %></td>
          <td><%= potential_student.sex %></td>
          <td><%= potential_student.mobile %></td>
          <td><%= potential_student.student_group_configuration.group_name if potential_student.student_group%></td>
          <td><%= potential_student.student_age_group %></td>
          <td><%= potential_student.status %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", admin_potential_student_path(potential_student) %></em>
            <span>]</span>
            <span>[</span>
            <em class="add-vi"><%= link_to "添加回访", new_remark_admin_potential_students_path(potential_student_id: potential_student.id), remote: true %></em>
            <span>]</span>	
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <div class="apple_pagination" >
    <%= paginate @potential_students, :container => false %>
  </div>
</div>
